using System;
using System.Linq;
using System.Runtime.Serialization;
 
namespace Model.Entity
{
    [DataContract]
    public class MediaInNewsKey
    {
        private int _mediaId;
        private int _newsId;

        public MediaInNewsKey(int mediaId, int newsId)
        {
            _mediaId = mediaId;
            _newsId = newsId;
        }

        [DataMember]
        public int MediaId
        {
            get
            {
                return this._mediaId;
            }
        }

        [DataMember]
        public int NewsId
        {
            get
            {
                return this._newsId;
            }
        }
    }
}